#ifndef REG_H
#define REG_H

#include <QWidget>
#include <QCryptographicHash>
#include <QMessageBox>
#include <QSqlQuery>

#include "database.h"
namespace Ui {
class Reg;
}

class Reg : public QWidget
{
    Q_OBJECT

public:
    explicit Reg(QWidget *parent = nullptr);
    ~Reg();

signals:
    void show_main();

private slots:
    void on_pushButton_reg_clicked();

private:
    Ui::Reg *ui;
    QSqlDatabase db;
};

#endif // REG_H
